﻿@{
    
    Layout = "~/Shared/_Layout.cshtml";
    Page.Header = "Emplyee Details";
    
   var empId = UrlData[0];
   
    
    // connect to mysql databse and find the records matching 
    
   // @fname = "bh";
    
   var peopledb = Database.Open("PeopleSoft");
    
   var selectQuery = "SELECT * FROM ndussearch.employees WHERE emplid = " + @empId;
   
  
    
    var data  = peopledb.QuerySingle(selectQuery);
    
    string space = "";
    
    string facultyImg = "../ImgFolder/BusinessPerson.png";
    string studentImg = "../ImgFolder/StudentPerson.png";
    string ImgName = studentImg;
    
    
}

<div data-role="content" >
    
    <ul data-role="listview" data-theme="c" data-inset="true" >
    
        <li> @data.firstname @space @data.lastname</li>
        
        <li><span class="dirHeaderFont"> Institution:  </span><p></p><span class="footerTextFont">  @data.institution  </span></li>
        <li><span class="dirHeaderFont"> Department: </span><p></p><span class="footerTextFont">  @data.department  </span></li> 
        <li><span class="dirHeaderFont"> Title:</span><p></p><span class="footerTextFont">  @data.title  </span></li> 
        <li data-icon="grid"><span class="dirHeaderFont">Phone:</span><p></p><span class="footerTextFont"><a href="tel:@data.phonenumber">@data.phonenumber </a></span></li> 
        <li data-icon="search"><span class="dirHeaderFont">Email:</span><p></p><span class="footerTextFont"><a href="mailto:@data.email">@data.email </a></span></li>
        <li><span class="dirHeaderFont">Active:</span><p></p><span class="footerTextFont">@data.active </span></li>    
               
        
    </ul>
    
    
    </div>
    